package com.css.bjdt_report.executive;

import java.util.ArrayList;
import java.util.List;

import com.css.bjdt_report.cell.entity.Cell;
import com.css.bjdt_report.executive.report.ReportSession;

public class DefaultExecutor implements Executor {

	@Override
	public void init(Cell cell, ReportSession session) {
		cell.setExecutor(this);
		List<Cell> list = (List<Cell>) session.getCell(cell.getTemplateId());
		if(list == null){
			list = new ArrayList<Cell>();
			session.putCell(cell.getTemplateId(), list);
		}
		list.add(cell);
	}

	@Override
	public String execute(Cell cell, ReportSession session) {
		return null;
	}

	@Override
	public void destory() {
		
	}
}